package leetcode.Y2024M6.review;

import org.junit.Test;

import java.util.Arrays;

public class S169 {
    public int majorityElement(int[] nums) {
        Arrays.sort(nums);
        return nums[nums.length/2];
    }

    @Test
    public void test() {

    }
}
